package net.web.entity;

public class User {
    private int id;
    private String username;
    private String password;
    private String email;
    private String userPicture;
    private String bio;
    private int role;
    private String likedArticles;
    private String collectedArticles;
    private String createdAt;
    private String updatedAt;

    public User() {
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public User(int id, String username, String password, String email, String userPicture, String bio, int role, String likedArticles, String collectedArticles, String createdAt, String updatedAt) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.email = email;
        this.userPicture = userPicture;
        this.bio = bio;
        this.role = role;
        this.likedArticles = likedArticles;
        this.collectedArticles = collectedArticles;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUserPicture() {
        return userPicture;
    }

    public void setUserPicture(String userPicture) {
        this.userPicture = userPicture;
    }

    public String getBio() {
        return bio;
    }

    public void setBio(String bio) {
        this.bio = bio;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public String getLikedArticles() {
        return likedArticles;
    }

    public void setLikedArticles(String likedArticles) {
        this.likedArticles = likedArticles;
    }

    public String getCollectedArticles() {
        return collectedArticles;
    }

    public void setCollectedArticles(String collectedArticles) {
        this.collectedArticles = collectedArticles;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", email='" + email + '\'' +
                ", userPicture='" + userPicture + '\'' +
                ", bio='" + bio + '\'' +
                ", role=" + role +
                ", likedArticles='" + likedArticles + '\'' +
                ", collectedArticles='" + collectedArticles + '\'' +
                ", createdAt='" + createdAt + '\'' +
                ", updatedAt='" + updatedAt + '\'' +
                '}';
    }
}



